<?php
require_once 'IMStorage.php';
abstract class AMStorage implements IMStorage {
	
	protected static $conn;
	public static $dsn = null;
	protected $id = null;
	
	private function __construct(){}
	
	public function save(){
		if($this->id === null)
			$this->add();
		else
			$this->update();
	}
	
	public static function instance($dsn = null){}
	public function connect(){}
	public function close(){}
	abstract public static function add();
	abstract public static function update();
	abstract public static function remove();
}
?>